import mvc.controller.AddrServlet;
import mvc.model.dao.AddrDao;
import mvc.model.dao.impl.AddrDaoImpl;
import mvc.model.pojos.AddressBean;
import mvc.model.service.AddressService;
import mvc.model.service.impl.AddressServiceImpl;

import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        String str = "15173366673";
        System.out.println(str.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2"));
    }
}
